package com.jerry.shop.service;

import com.jerry.shop.dto.OrderDto;

import java.util.List;

public interface OrderService {

    //查询订单列表
    List<OrderDto> findList();

    //根据购买者的id, 查询订单列表
    List<OrderDto> findList(String buyerId);

    //查询订单列表
    List<OrderDto> findListByPage(Integer page, Integer pageSize);

    //根据购买者的id, 分页查询订单列表
    List<OrderDto> findListByPage(String buyerId, Integer page, Integer pageSize);

    //查询单个订单.
    OrderDto findOne(String orderId);

    //查询一个订单
    OrderDto findOne(String buyerId, String orderId);

    //创建订单
    OrderDto create(OrderDto orderDto);

    //取消订单
    OrderDto cancel(OrderDto orderDto);

    //取消订单
    OrderDto cancel(String buyerId, String orderId);

    //完结订单
    OrderDto finish(OrderDto orderDto);

    //支付订单
    OrderDto paid(OrderDto orderDto);


}
